package com.lvt.design.pattern.action.observer.p2pdemo.refactor;

import com.lvt.design.pattern.action.observer.p2pdemo.PromotionService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * desc：class
 *
 * @author LT
 * @date 2022/12/4
 */
public class RegPromotionObserver implements RegObserver {

    @Autowired
    private PromotionService promotionService;

    @Override
    public void handleRegSuccess(Long userId) {
        promotionService.issueNewUserExperienceCase(userId);
    }
}
